f8f3a82ed849ce6d5388245ca6f521c76e4fd6e9,src/freenet/clients/http/FirstTimeWizardToadlet.java,FirstTimeWizardToadlet,handleGet,#URI#HTTPRequest#ToadletContext#,66
Before Change
HTMLNode bandwidthForm = ctx.addFormChild(bandwidthInfoboxContent, ".", "bwForm");
HTMLNode result = bandwidthForm.addChild("select", "name", "bw");
Option sizeOption = config.get("node").getOption("outputBandwidthLimit");
if(!sizeOption.isDefault()) {
int current = (Integer)sizeOption.getValue();
result.addChild("option", new String[] { "value", "selected" }, new String[] { SizeUtil.formatSize(current), "on" }, l10n("currentSpeed")+" "+SizeUtil.formatSize(current)+"/s");
}
After Change
HTMLNode result = bandwidthForm.addChild("select", "name", "bw");
@SuppressWarnings("unchecked")
Option<Integer> sizeOption = (Option<Integer>) config.get("node").getOption("outputBandwidthLimit");
if(!sizeOption.isDefault()) {
int current = sizeOption.getValue();
result.addChild("option", new String[] { "value", "selected" }, new String[] { SizeUtil.formatSize(current), "on" }, l10n("currentSpeed")+" "+SizeUtil.formatSize(current)+"/s");